/* Copyright (c) 2022-2025 Qualcomm Technologies International, Ltd. */
/* %%version */


#ifndef GATT_XPAN_CLIENT_DEBUG_H_
#define GATT_XPAN_CLIENT_DEBUG_H_

#include "csr_synergy.h"

#ifndef EXCLUDE_GATT_XPAN_CLIENT_MODULE

#include "lea_logging.h"

/*#define LEA_XPAN_LOG_ENABLE 0x00040000*/

#if (defined(LEA_XPAN_LOG_ENABLE) && defined(LEA_LOG_MASK)&& (LEA_XPAN_LOG_ENABLE & LEA_LOG_MASK))

#define GATT_XPAN_CLIENT_INFO(...) CSR_LOG_TEXT_INFO((CsrBtXpanLto, 0, __VA_ARGS__))
#define GATT_XPAN_CLIENT_WARNING(...)  CSR_LOG_TEXT_WARNING((CsrBtXpanLto, 0, __VA_ARGS__))
#define GATT_XPAN_CLIENT_ERROR(...)  CSR_LOG_TEXT_ERROR((CsrBtXpanLto, 0, __VA_ARGS__))
#define GATT_XPAN_CLIENT_PANIC(...)  {CSR_LOG_TEXT_ERROR((CsrBtXpanLto, 0, __VA_ARGS__)); CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#else

#define GATT_XPAN_CLIENT_INFO(...)
#define GATT_XPAN_CLIENT_WARNING(...)
#define GATT_XPAN_CLIENT_ERROR(...)
#define GATT_XPAN_CLIENT_PANIC(...)  {CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#endif

#endif /* EXCLUDE_GATT_XPAN_CLIENT_MODULE */
#endif /* GATT_XPAN_CLIENT_DEBUG_H_ */
